//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_addpoints.sqf"
#include "x_setup.sqf"

if (!isNil QGVAR(HC_CLIENT_OBJ)) exitWith {
	[QGVAR(addPoi), _this] call FUNC(NetCallEventCTS);
};
private ["_points","_killer"];
if (!isPlayer _killer) exitWith {};
PARAMS_2(_points,_killer);
switch (side (group _killer)) do {
	case blufor: {GVAR(points_blufor) = GVAR(points_blufor) + _points};
	case opfor: {GVAR(points_opfor) = GVAR(points_opfor) + _points};
};
_killer addScore _points;